package com.awifi.dbus.service;

import com.awifi.dbus.dao.IUserDao;
import com.awifi.dbus.model.User;

public class UserService implements IUserService {
	private IUserDao userDao;
	
	//要实现 get 和 set
	public IUserDao getUserDao() {
		return userDao;
	}

	public void setUserDao(IUserDao userDao) {
		this.userDao = userDao;
	}

	@Override
	public void add(User user) {
		userDao.add(user);;
	}

	@Override
	public void del(int id) {
		userDao.del(id);
	}

	@Override
	public User load(int id) {
		userDao.load(id);
		return null;
	}

}
